home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
tsbat30.zip
/
RUN.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-11-09
|
1KB
|
63 lines
echo off
echo **********************************************
echo * Virus Testbench by Timo Salmi 14-Jan-1990 *
echo **********************************************
rem To use this batch you need Bob Taylor's excellent chksum.exe
rem which can be downloaded from any well-stocked BSS, or from
rem garbo.uwasa.fi by anonymous ftp.
rem Format a floppy disk. Calculate the checksums of the files on it and
rem substitute these checksums below on the four rows starting with
rem chksum. The safest way is to test with no harddisk available, or
rem on your colleague's machine :-)
rem Invoke the susceptible program using
rem RUN PROGRAM-NAME-(WITH-EXTENSION) [PARAMETER(S)]
rem and note down the checksum.
rem The batch gives you the opportunity of seeing if the checksums
rem are changed by your dubious program.
rem If they are, then you are too late :-)
echo on
chksum ibmbio.com 43484 ibmdos.com 11667 command.com 17821
chksum chksum.exe 54541 list.com 60812
echo off
if "%1"=="" goto err_1
if not exist %1 goto err_2
set apu=%apu% %1
echo on
chksum%apu%
echo off
pause
:loop
set lista=%lista% %1
shift
if not "%1"=="" goto loop
echo on
%lista%
chksum ibmbio.com 43484 ibmdos.com 11667 command.com 17821
chksum chksum.exe 54541 list.com 60812
chksum%apu%
echo off
goto out
:err_1
echo No program name given
echo
goto out
:err_2
echo %1 not found
echo
goto out
:out
set apu=
set lista=
echo on